import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/discover'
  },
  {
    path: '/dj',
    name: 'dj',
    component: () => import('@/views/dj/index.vue')
  },
  {
    path: '/discover',
    name: 'discover',
    component: () => import('@/views/discover/index.vue')
  },
  {
    path: '/music',
    name: 'music',
    component: () => import('@/views/music/index.vue')
  },
  {
    path: '/video',
    name: 'video',
    component: () => import('@/views/video/index.vue')
  },
  {
    path: '/like',
    name: 'like',
    component: () => import('@/views/video/index.vue')
  },
  {
    path: '/local',
    name: 'local',
    component: () => import('@/views/video/index.vue')
  },
  {
    path: '/download',
    name: 'download',
    component: () => import('@/views/video/index.vue')
  },
  {
    path: '/recently',
    name: 'recently',
    component: () => import('@/views/video/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  linkActiveClass: 'active',
  routes
})

export default router
